package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author 李旭
 * @date 2021/10/20 15:14
 * @Description:
 */
@FeignClient(name = "service-order")
public interface OrderInfoFeignClient {

    @GetMapping("/api/order/trade")
    public Map trade();

    //根据订单ID 查询订单对象
    @GetMapping("/api/order/auth/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
}
